<?php

return [

    // ----------------------- 菜单配置 ----------------------- //
    'config' => [
        // 菜单配置
        'menu' => [
            'location' => 'default', // default:系统顶部菜单;addons:应用中心菜单
            'icon' => 'fa fa-puzzle-piece',
        ],
        // 子模块配置
        'modules' => [
        ],
    ],

    // ----------------------- 快捷入口 ----------------------- //

    'cover' => [

    ],

    // ----------------------- 菜单配置 ----------------------- //

    'menu' => [
        [
            'title' => '首页',
            'icon' => 'fa fa-wechat',
            'route'  => 'index/index'
        ],
        [
            'title' => '任务管理',
            'icon' => 'fa fa-wechat',
            'child' => [
                [
                    'title' => '添加任务',
                    'route'  => 'tasks/add-tasks'
                ],
                [
                    'title' => '审核',
                    'route'  => 'auth-role/index'
                ],
                [
                    'title' => '发送',
                    'route'  => 'tasks/index'
                ],
                [
                    'title' => '接收',
                    'route'  => 'auth-item/index'
                ],
            ],
        ],
        [
            'title' => '用户管理',
            'icon' => 'fa fa-wechat',
            'child' => [
                [
                    'title' => '后台用户',
                    'route'  => 'member/index'
                ],
                [
                    'title' => '角色管理',
                    'route'  => 'auth-role/index'
                ]
            ],
        ],
        [
            'title' => '菜单管理',
            'icon' => 'fa fa-wechat',
            'child' => [
                [
                    'title' => '菜单管理',
                    'route'  => 'menu/index',
                    'params' => [
                        'cate_id' => '85',
                    ],
                ],
            ],
        ],
        [
            'title' => '传输服务器',
            'icon' => 'fa fa-wechat',
            'child' => [
                [
                    'title' => 'ftp服务器',
                    'route'  => 'ftp/index',
                ],
                [
                    'title' => '网络组服务器',
                    'route'  => 'server-group/index',
                ],
            ],
        ],
        [
            'title' => '部门管理',
            'icon' => 'fa fa-wechat',
            'child' => [
                [
                    'title' => '部门列表',
                    'route'  => 'department/index',
                ],
                [
                    'title' => '创建/编辑部门',
                    'route'  => 'department/edit',
                ]
            ],
        ],
    
    ],

    // ----------------------- 权限配置 ----------------------- //

    'authItem' => [
        [
            'title' => '用户管理',
            'name' => 'user',
            'child' => [
                [
                    'title' => '后台用户',
                    'name' => 'member/index',
                ],
                [
                    'name' => 'auth-role/index',
                    'title' => '角色管理',
                ]
            ]
        ],
        [
            'title' => '部门管理',
            'name' => 'department',
            'child' => [
                [
                    'title' => '部门列表',
                    'name' => 'department/index',
                ],
                [
                    'title' => '创建/编辑部门',
                    'name' => 'department/edit',
                ]
            ]
        ],
    ],
];